<template>
  <div class="help">
    <Header></Header>
    <div class="helpbox1">
      <div class="serch">
        <el-input style="float: left;width: 490px" v-model="search" placeholder="搜索你的问题和关键词，例如：作业、班级、邀请码"></el-input>
        <a class="serchbutton">搜索</a>
      </div>
    </div>
    <div class="helpbox2">
      <h1 style="font-size: 35px;font-weight: 500;margin-top: 35px">帮助视频</h1>
      <div style="width: 1200px;height: 500px">
        <div style="width: 600px;height: 500px;float: left;">
          <div class="videobox">
            <img @click="controlsVideo1" id="control1" class="videoboxcontrol"
                 src="https://www.ketangpai.com/Public/Home/img/player.png">
            <video id="video1" style="z-index: 5" controls width="550px" height="312px">
              <source src="https://assets.ketangpai.com/help2019/kssh.mp4" type="video/mp4">
            </video>
          </div>
          <p style="font-size: 24px;padding: 50px">好老师更好的课堂-快速入门</p>
        </div>
        <div style="width: 600px;height: 500px;float: left">
          <div class="videobox">
            <img @click="controlsVideo2" id="control2"
                 class="videoboxcontrol"
                 src="https://www.ketangpai.com/Public/Home/img/player.png">
            <video id="video2" controls width="550px" height="312px">
              <source src="https://assets.ketangpai.com/help2019/workwechat.mp4" type="video/mp4">
            </video>
          </div>
          <p style="font-size: 24px;padding: 50px">在线教学+课堂派企业微信版</p>
        </div>
      </div>
    </div>
    <div class="helpbox3">
      <img style="float: left;width: 340px;height: 240px"
           src="https://www.ketangpai.com/Public/Home/img/classbeforebig.png">
      <div class="helpbox3div">
        <div style="width: 460px;height: 65px;position: relative">
          <img style="float: left;margin-left: 40px" src="https://www.ketangpai.com/Public/Home/img/classbefore.png">
          <span
            style="font-size: 24px;font-weight: 700;color: #333;margin-left: 20px;float: left;position: relative;top: 10px">课前</span>
        </div>
        <ul class="helpbox3ul">
          <li>创建课程</li>
          <li>课件互动-创建互动试题</li>
          <li>备课</li>
          <li>课件码</li>
          <li>成员管理</li>
        </ul>
      </div>
    </div>
    <div class="helpbox3">
      <div class="helpbox3div">
        <div style="width: 460px;height: 65px;position: relative">
          <img style="float: left;margin-left: 40px" src="https://www.ketangpai.com/Public/Home/img/classnew.png">
          <span
            style="font-size: 24px;font-weight: 700;color: #333;margin-left: 20px;float: left;position: relative;top: 10px">课中</span>
        </div>
        <ul class="helpbox3ul">
          <li>考勤</li>
          <li>课件互动-上课</li>
          <li>表现</li>
          <li>提问</li>
          <li>抢答</li>
          <li>星星卡</li>
          <li>直播</li>
          <li>录屏</li>
        </ul>
      </div>
      <img style="float: left;width: 340px;height: 240px" src="https://www.ketangpai.com/Public/Home/img/classbig.png">
    </div>
    <div class="helpbox3">
      <img style="float: left;width: 340px;height: 240px"
           src="https://www.ketangpai.com/Public/Home/img/classaffterbig.png">
      <div class="helpbox3div">
        <div style="width: 460px;height: 65px;position: relative">
          <img style="float: left;margin-left: 40px" src="https://www.ketangpai.com/Public/Home/img/classaffter.png">
          <span
            style="font-size: 24px;font-weight: 700;color: #333;margin-left: 20px;float: left;position: relative;top: 10px">课后</span>
        </div>
        <ul class="helpbox3ul">
          <li>作业</li>
          <li>测试</li>
          <li>话题</li>
          <li>成绩</li>
          <li>私信</li>
        </ul>
      </div>
    </div>
    <Footer1></Footer1>
  </div>
</template>

<script>
  import Header from "../../components/Header";
  import Footer1 from "../../components/Footer1";

  export default {
    name: "Help",
    data() {

      return {
        search: '',
      };

    },
    methods: {
      controlsVideo1() {
        document.getElementById('video1').play();
        document.getElementById('video2').pause();
        document.getElementById('control2').setAttribute('class', 'videoboxcontrol');
        document.getElementById('control1').setAttribute('class', 'videoBoxControlHide');
      },
      controlsVideo2() {
        document.getElementById('video2').play();
        document.getElementById('video1').pause();
        document.getElementById('control1').setAttribute('class', 'videoboxcontrol');
        document.getElementById('control2').setAttribute('class', 'videoBoxControlHide');
      }
    },
    components: {
      Header,
      Footer1,
    },
  }

</script>

<style scoped>
  .help {
    width: 1500px;
    height: auto;
  }

  .helpbox1 {
    width: 1500px;
    height: 200px;
    background: url("https://www.ketangpai.com/Public/Home/img/producter-bg.png") center top no-repeat;
    position: relative;
    background-size: cover;
  }

  .serch {
    width: 610px;
    height: 65px;
    position: absolute;
    top: 50px;
    left: 450px;
  }

  .serchbutton {
    float: left;
    width: 120px;
    height: 65px;
    background-color: #32BAF0;
    cursor: pointer;
    border-radius: 0px;
    line-height: 65px;
    font-size: 24px;
    border-radius: 0 5px 5px 0;
    color: white;
  }

</style>
<style>
  .help .el-input__inner {
    width: 490px !important;
    height: 65px;
    float: left;
    border-radius: 0px;
    font-size: 18px;
    font-weight: 500;
  }

  .helpbox2 {
    width: 1520px;
    height: 581px;
    background-color: #f7f4f8;
    border: #cdcdcd solid 1px;
  }

  .videobox {
    position: relative;
    width: 550px;
    height: 312px
  }

  .videoboxcontrol {
    z-index: 10;
    top: 40%;
    left: 45%;
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
  }

  .videoBoxControlHide {
    display: none;
  }

  .helpbox3 {
    width: 900px;
    height: 260px;
    padding-top: 70px;
    margin: 0 auto;

  }

  .helpbox3div {
    float: left;
    width: 460px;
    height: 260px;
    margin-left: 80px;
    margin-top: 32px;
  }

  .helpbox3ul {
    list-style: none;
    float: left;
  }

  .helpbox3ul li {
    font-size: 16px;
    color: #9A9A9A;
    float: left;
    min-width: 100px;
    margin-top: 20px;
    cursor: pointer;
    margin-left: 13px;
    padding-left: 25px;
    background: url('https://www.ketangpai.com/Public/Home/img/play.png') left center no-repeat;
    background-size: 16px 16px;
    text-align: left;
  }

  .helpbox3ul li:hover {
    color: #32BAF0;
    background: url('https://www.ketangpai.com/Public/Home/img/playActive.png') left center no-repeat;
  }
</style>
